<?php echo $form->messages('formMessage'); ?>
<?php echo $form->messages('csrf'); ?>
<?php echo $this->tag->form(array()); ?>
<div class="form-group">
    <?php echo $form->render('passwordOld', array('class' => 'form-control', 'minlength' => '6', 'maxlength' => '50')); ?>
    <?php echo $form->messages('passwordOld'); ?>
</div>
<div class="form-group">
    <?php echo $form->render('passwordNew', array('class' => 'form-control', 'minlength' => '6', 'maxlength' => '50')); ?>
    <?php echo $form->messages('passwordNew'); ?>
</div>
<div class="form-group">
    <?php echo $form->render('passwordConfirm', array('class' => 'form-control', 'minlength' => '6', 'maxlength' => '50')); ?>
    <?php echo $form->messages('passwordConfirm'); ?>
</div>
<div class="form-group">
    <?php echo $form->render('submit', array('value' => 'Save')); ?>
</div>
<?php echo $form->render('csrf'); ?>
<?php echo $this->tag->endform(); ?>